package com.juxin.jiguangdemo;

import android.app.Application;
import android.content.Context;
import android.util.Log;

import java.util.Stack;

import cn.jpush.android.api.JPushInterface;

import static android.content.ContentValues.TAG;

/**
 * Created by Administrator on 2018/3/28.
 */

public class MyApplication extends Application {
    public static Context mApplicationContext;
    @Override
    public void onCreate() {
        super.onCreate();
        mApplicationContext = getApplicationContext();
        // 初始化极光
        JPushInterface.setDebugMode(true);
        JPushInterface.init(mApplicationContext);
        Log.e(TAG, "isPushStopped = " + JPushInterface.isPushStopped(mApplicationContext));
    }
}
